unit cmdSetProjectName;

interface

uses  classes, sysutils
    , nativeXml
    , appMappldXmlNode
    , appMappldXmlCommand
    , appMappldTypes
    , appMappldXmlContext
;

type
    {------------------------------ TCmdSetProjectName }

    {***************************************************************************
    * TCmdSetProjectName
    ***************************************************************************}
    TCmdSetProjectName = class( TMappldXmlCommand )
protected
    procedure   internalProccess(); override;
    end;

implementation

{*******************************************************************************
* internalProccess
*******************************************************************************}
procedure TCmdSetProjectName.internalProccess();
begin
    FxmlContext.projectName := FxmlNode.ValueAsString;
end;

initialization

TMappldXmlCommand.registerCommandByCode( XML_CMD_SetProjectName, TCmdSetProjectName );

end.
